add_library(XSSL STATIC
    XSSLCtx.cpp
    XSSL.cpp
    XSSLCtx.h
    XSSL.h
)
target_link_libraries(XSSL
    OpenSSL::Crypto
    OpenSSL::SSL
)
target_compile_options(XSSL PRIVATE -fPIC)
set_runtime_name(XSSL)
set_out_path(XSSL)
# 设置安装路径
install(TARGETS XSSL
    ARCHIVE DESTINATION lib
    LIBRARY DESTINATION lib
    RUNTIME DESTINATION bin
)
# 安装头文件
install(FILES XSSLCtx.h XSSL.h
    DESTINATION include/xcom/XSSL
)